﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WindowsFormProject.Kasa 
{
 public class ErrorClassi : ErrorProvider
    {
    
    
     public bool Error(TextBox controlname,string hata)
     {
         bool status = true;
         if (hata != "")
         {
             this.SetError(controlname,Convert.ToString(controlname.Text + " " + hata));
             status = false;
             return status;
         }
         this.SetError(controlname, "");
         return status;
     }
    }
}
